package com.atguigu.springcloud.controller;

import com.atguigu.springcloud.service.IMsgProviderService;
import com.atguigu.springcloud.service.impl.MsgProviderServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author ：jjt8024
 * @date ：Created in 2021/3/11 20:54
 */
@RestController
public class MsgController {


    @Autowired(required = true)
    @Qualifier("msgProviderServiceImpl")
    private MsgProviderServiceImpl msgProviderServiceImpl;

    @GetMapping(value = "/send")
    public String send(){
        return  msgProviderServiceImpl.send();
    }
}
